package com.xbongbong.paas.pojo.workflow.nodes.vo;

import com.xbongbong.paas.enums.clazz.ConditionClass;
import com.xbongbong.workflow.pojo.nodes.WorkflowConditionPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author 吴峰
 * @date 2021/06/03 19:39
 */
@Getter
@Setter
@ToString
public class WorkflowConditionPojoVO extends WorkflowConditionPojo {

    private static final long serialVersionUID = 3847202637062987142L;


    private Integer delete;


    private String targetName;

    private List<ConditionClass> whereList;

    public WorkflowConditionPojoVO() {
    }
    public WorkflowConditionPojoVO(String name, Integer fieldType, String attr, Integer triggerNodeFlag,  Long workflowNodeId, Long formId, Integer saasMark, Integer businessType,
                                   String symbol, Long targetWorkflowNodeId, Long targetFormId, Integer targetSaasMark, Integer targetBusinessType,
                                   Integer valueType, Integer targetFieldType, String targetAttr, List<Object> value) {
        super(name, fieldType, attr, triggerNodeFlag, workflowNodeId, formId, saasMark, businessType, symbol, targetWorkflowNodeId,  targetFormId, targetSaasMark,
                targetBusinessType, valueType, targetFieldType, targetAttr, value);
    }
    public WorkflowConditionPojoVO(String name, Integer delete, String targetName, Integer fieldType, String attr, Integer triggerNodeFlag, Long workflowNodeId, Long formId, Integer saasMark, Integer businessType,
                                   String symbol, Long targetWorkflowNodeId, Long targetFormId, Integer targetSaasMark, Integer targetBusinessType,
                                   Integer valueType, Integer targetFieldType, String targetAttr, List<Object> value) {
        super(name, fieldType, attr, triggerNodeFlag, workflowNodeId, formId, saasMark, businessType, symbol, targetWorkflowNodeId, targetFormId, targetSaasMark,
                targetBusinessType, valueType, targetFieldType, targetAttr, value);
        this.delete = delete;
        this.targetName = targetName;
    }
}
